package com.suke.czx.modules.performance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suke.czx.modules.performance.entity.Performance;
import com.suke.czx.modules.performance.entity.PerformanceSearchBo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 应用模块名称: 绩效
 * 代码描述: 绩效持久层
 * copyright: AUZAR ALL RIGHTS RESERVED
 * company: AUZAR
 *
 * @author: 颜米晨
 * @date: 2021/09/27 2:34
 */
public interface PerformanceMapper extends BaseMapper<Performance> {

    /**
     * 查询绩效列表
     * @param performanceSearchBo 查询BO
     * @return 绩效数据集
     */
    List<Performance> selectPerformanceList(PerformanceSearchBo performanceSearchBo);

    /**
     * 加和绩效分数
     * @param performanceSearchBo 查询BO
     * @return 绩效分数和
     */
    Double sumPerformanceCategory(PerformanceSearchBo performanceSearchBo);

    /**
     * 删除绩效
     * @param performanceId 绩效编码
     * @param userId 操作者编码
     */
    void updateDelPerformance(@Param("performanceId") Long performanceId, @Param("userId") Long userId);

}
